/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseEntity;

import java.sql.Timestamp;
import java.io.Serializable;

/**
* @description /
* @author huangwencong
* @date 2024-10-05
**/
@Data
@TableName("train_qtgnwdx")
public class TrainQtgnwdx extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "训练 ID")
    private Long trainId;

    @ApiModelProperty(value = "训练项目")
    private Long trainItemId;

    @ApiModelProperty(value = "角速度60(训练持续时间|植物神经反应)")
    private String jsd60;

    @ApiModelProperty(value = "角速度75(训练持续时间|植物神经反应)")
    private String jsd75;

    @ApiModelProperty(value = "角速度90(训练持续时间|植物神经反应)")
    private String jsd90;

    @ApiModelProperty(value = "角速度105(训练持续时间|植物神经反应)")
    private String jsd105;

    @ApiModelProperty(value = "角速度120(训练持续时间|植物神经反应)")
    private String jsd120;

    @ApiModelProperty(value = "前庭功能评级(0:A.1:B,2:C,3:D,4:E)")
    private Integer gnpj;

    @ApiModelProperty(value = "植物神经反应分级(0,1,2,3)")
    private Integer fypj;

    @ApiModelProperty(value = "评定结果(0:优秀，1：良好，2：合格，3：不合格：4：复训合格)")
    private Integer result;

    @ApiModelProperty(value = "建议")
    private String jy;

    @ApiModelProperty(value = "记录日期")
    private Timestamp date;


    public void copy(TrainQtgnwdx source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
